import Vue from 'vue'
import Router from 'vue-router'
import sIndex from '../components/s_index'
import sEntry from '../components/s_entry'
import sCode from '../components/s_code'
import sError from '../components/s_error'
import sTask from '../components/s_task'
import sCargo from '../components/s_cargo.vue'
import sGame from '../components/Game/index.vue'
import sAdd from '../components/common/add.vue'


Vue.use(Router)


export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            component: sCargo
        },
        {
            path: '/e',
            component: sEntry
        },
        {
            path: '/c',
            component: sCode
        },
        {
            path: '/error',
            component: sError
        },
        {
            path: '/coin/task',
            component: sTask
        },
        {
            path: '/sIndex/:name',
            component: sIndex
        },
        {
            path: '/sGame',
            component: sGame
        },
        {
            path: '*',
            component: sError
        }
    ]
})
